<?xml version="1.0" encoding="UTF-8" ?>

<!-- New document created with EditiX at Wed Oct 05 22:50:25 CEST 2011 -->

<xsl:stylesheet version="2.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
	xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
	xmlns:err="http://www.w3.org/2005/xqt-errors"
	exclude-result-prefixes="xs xdt err fn">

	<xsl:output method="xml" indent="yes"/>
		
	<xsl:template match="/">
		
<chart caption='Calorien per product'   xAxisName='Product'   yAxisName='Calorien' > 
		      <xsl:for-each select="ProductCalorien/Product">
		      <set>
			  <xsl:attribute name="label">
			    <xsl:value-of select="Naam" />
			  </xsl:attribute>
			  <xsl:attribute name="value">
			    <xsl:value-of select="Calorien" />
			  </xsl:attribute>
		     </set>
		      </xsl:for-each>		   
</chart>
	</xsl:template>

</xsl:stylesheet>
